﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OA.Models
{
    public class AjaxResult
    {
        public bool IsSuccess { get; set; }
        public string Code { get; set; }
        public string Message { get; set; }
        public object Data { get; set; }

        public AjaxResult()
        {
            Code = "200";
            IsSuccess = true;
            Message = "操作成功!";
        }
        public AjaxResult(bool isSuccess, string message)
        {
            Code = "200";
            IsSuccess = isSuccess;
            Message = message;
        }
        public AjaxResult(bool isSuccess, string message, object data)
        {
            Code = "200";
            IsSuccess = isSuccess;
            Message = message;
            Data = data;
        }
    }
}